package com.example.service.impl;

import com.example.mapper.MessagesMapper;
import com.example.pojo.Messages;
import com.example.service.MessagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessagesServiceImpl implements MessagesService {

    @Autowired
    private MessagesMapper messagesMapper;

    @Override
    public List<Messages> listBySenderId(Integer senderId) {
        return messagesMapper.listBySenderId(senderId);
    }
}